unit config;

interface

uses Graphics;

const

  DEFAULT_ITEM_HEIGHT = 12;
  DEFAULT_ITEM_WIDTH = 8;

  DEFAULT_RASTER_X = DEFAULT_ITEM_WIDTH; //pixels
  DEFAULT_RASTER_Y = DEFAULT_ITEM_HEIGHT;

  BAR_HEIGHT = 24;

  // colors
  COLOR_BLACK = $000000;
  COLOR_BLUE = $800000;
  COLOR_GREEN = $008000;
  COLOR_CYAN = $808000;
  COLOR_RED = $000080;
  COLOR_MAGENTA = $800080;
  COLOR_BROWN = $004080;
  COLOR_LIGHT_GRAY = $C0C0C0;
  COLOR_DARK_GRAY = $808080;
  COLOR_LIGHT_BLUE = $FF0000;
  COLOR_LIGHT_GREEN = $00FF00;
  COLOR_LIGHT_CYAN = $FFFF00;
  COLOR_LIGHT_RED = $0000FF;
  COLOR_LIGHT_MAGENTA = $FF00FF;
  COLOR_YELLOW = $00FFFF;
  COLOR_WHITE = $FFFFFF;

  COLOR_BACKGROUND = clBlack;
  COLOR_BACKGROUND_SELECTED = clGreen;
  COLOR_BACKGROUND_SELECTED_FRAMESHIFT = clLtGray;
  COLOR_BACKGROUND_TIME = COLOR_BLUE;

  COLOR_ITEM_DEFAULT = clGray;
  COLOR_ITEM_IN_TRAIN_ROUTE = clLime;
  COLOR_ITEM_IN_FRAMESHIFT_TRAIN_ROUTE = clWhite;
  COLOR_TIME = COLOR_WHITE;

  //formating constants

  TIME_FORMAT = 'hh:nn:ss';
  DATE_FORMAT = 'dd.mm.yyyy';
  TIME_MARGIN = 20; //px

  //xml constants

  ATR_ID = 'id';
  ATR_TYPE = 'type';
  ATR_START_X = 'startX';
  ATR_START_Y = 'startY';
  ATR_END_X = 'endX';
  ATR_END_Y = 'endY';
  ATR_DIRECT_Y = 'directY';
  ATR_SIDE_Y = 'sideY';
  ATR_STRAIGHT_START = 'sraightStart';
  ATR_STRAIGHT_END = 'straightEnd';
  ATR_DIRECTION = 'direction';
  ATR_MAIN = 'main';
  ATR_FRAMESHIFT = 'frameshift';
  ATR_START_DAY = 'dayStart';
  ATR_END_DAY = 'dayEnd';
  ATR_NAME = 'name';


implementation

end.
